package cn.imvc.app.models;

import org.springframework.data.domain.Page;

import cn.imvc.app.entities.Bankcard;
import cn.imvc.app.entities.Member;
import cn.imvc.data.domain.ViewRequest;

public interface BankcardModel{
	Page<Bankcard> find(ViewRequest viewRequest);

	Bankcard get(int id);

	Bankcard save(Bankcard entity);

	Bankcard update(Bankcard entity);

	void delete(int id);

	void deleteBatch(int[] ids);	
	
	Bankcard findDefaultCard(Integer memberId,Byte isDefault);
	
	void cancelDefault(Member member);
	
	
}